package com.lbm.business.service;

import java.util.List;
import com.lbm.baseclass.exception.ServiceException;
import com.lbm.baseclass.service.IBaseService;
import com.lbm.model.RoleInfo;

public interface IRoleInfoService extends IBaseService {
	/**
	 * 通过HQL构造查询条件来查询符合条件的Userinfo信息
	 * 
	 * @param hql
	 * @return List
	 * @throws DataAccessException
	 */
	public List getRoleInfoByHQL(String hql)throws ServiceException;
	/**
	 * 根据主键查询Userinfo信息明细
	 * 
	 * @param id
	 * @throws DataAccessException
	 */
	public RoleInfo getRoleInfoById(String id) throws ServiceException;
	/**
	 * 查询所有的Userinfo信息
	 * 
	 * @param hql
	 * @return List
	 * @throws DataAccessException
	 */
	public List getAllRoleInfo() throws ServiceException;
	/**
	 * 新增、修改Userinfo信息
	 * 
	 * @param Userinfo
	 * @throws DataAccessException
	 */
	 public  void saveOrUpdateRoleInfo(RoleInfo roleinfo) throws ServiceException ;
    /**
	 * 删除Userinfo信息
	 * 
	 * @param id
	 * @throws DataAccessException
	 */
	  public  void deleteRoleInfo(String id) throws ServiceException;
}
